#ifndef WIFIDBWINDOW_H
#define WIFIDBWINDOW_H



#include <QMainWindow>
#include <QtSql>
#include <QtGui>

namespace Ui {
class wifiDBWindow;
}

class wifiDBWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit wifiDBWindow(QWidget *parent = 0);
    ~wifiDBWindow();
    

public slots:
    void crackDisplay(QString mac);

    void clientsDisplay(QString mac);

private slots:
    void on_addButton_clicked();

    void on_delButton_clicked();

    void on_updateButton_clicked();

    void crackDisplay();

    void clientsDisplay();


private:
    Ui::wifiDBWindow *ui;
    QSqlRelationalTableModel *model;
    int crackIdx, clientIdx;

    void showError(const QSqlError &err);
};

#endif // WIFIDBWINDOW_H
